﻿using System.Web.Mvc;

namespace Peninsula.Web.Areas.Backstage
{
    public class BackstageAreaRegistration : AreaRegistration 
    {
        public override string AreaName 
        {
            get 
            {
                return "Backstage";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
                 RouteConfig.AdminDefault,
                "Backstage/{controller}/{action}/{id}",
                 new { action = "Index", Controller = "Home", id = UrlParameter.Optional },
                 namespaces: new string[] { "Peninsula.Web.Areas.Backstage.Controllers" }
            );
        }
    }
}